package com.wechat.server.mp.controller;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.io.IoUtil;
import cn.hutool.poi.excel.ExcelUtil;
import cn.hutool.poi.excel.ExcelWriter;
import com.wechat.server.mp.dto.OrderExcelModel;
import com.wechat.server.mp.service.PddService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.Date;
import java.util.List;

/**
 * @description: 平多多
 * @author: stone
 * @date: Created by 2021/10/8 22:54
 * @version: 1.0.0
 * @pakeage: com.wechat.server.mp.controller
 */
@RestController
@RequestMapping("/pdd")
@Slf4j
public class PddController {
    //https://fuwu.pinduoduo.com/service-market/auth?response_type=code&client_id=4b6**********************672e4c9a&redirect_uri=https://www.oauth.net/2/&state=1212


    @Autowired
    private PddService pddService;



    @GetMapping("/getTime")
    public String getTime() throws Exception {

        return pddService.getTime();
    }



}
